Svelte 3 Up and Running by Alessandro Segala

Svelte 3 Up and Running by Alessandro Segala

Author:Alessandro Segala
Language: eng
Format: epub, mobi
Publisher: packt Publishing Pvt Ltd
Published: 2020-08-28T00:00:00+00:00


Fig 3.4 – The ViewAdd component rendered: the AddForm component at the top lets users type a new entry, and the Renderer component below it shows a real-time preview (with live Markdown rendering)

To render the ViewAdd component and try it yourself, write the following code in src/App.svelte (note that the component should be fully functional at this stage, so you can submit the form and have the API server store your journal entry!):

src/App.svelte (temporary)

<ViewAdd />

<script>

import ViewAdd from './components/ViewAdd.svelte'

</script>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.